-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LUN-400: Image for own vocabulary #377
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the failing tests are due to the same error we've talked about in Lun-407
recently.
Adding jest.mock('@react-navigation/native')
here should fix it.
# Conflicts: # src/routes/user-vocabulary-list/UserVocabularyListScreen.tsx # src/services/AsyncStorage.ts
# Conflicts: # src/components/NotAuthorisedView.tsx # src/routes/add-custom-discipline/components/QRCodeReaderOverlay.tsx
96eefe4
to
6141ea4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good already, well done! Tested on android.
Things I noticed:
- The error messages of the image overlay are not adjusted, e.g. it says
Kamerazugriff zum Scannen von QR-Codes erforderlich
even though I am trying to add images for vocabulary. - There is no kind of feedback that I already took an image. I think it would be better if the camera overlay would close after taking one image and the user has to klick on
Bild hochladen
again if more than one images are wanted (I think it will not be that common) Bild hochladen
sounds like it is uploaded to a server or something which I personally as a privacy oriented user would be very hesitant to do. Instead, the namingBild hinzufügen
would be better imo. Not sure if we should use plural.- Is it planned to add an option to add images from the gallery instead of having to take new pictures?
- What is the small image button in the bottom left of the camera view doing? Nothing happens for me and I got a unhandled promise rejection once upon clicking it.
- The view for user vocabulary is broken, see screenshot (probably not done in your PR though).
src/routes/process-user-vocabulary/components/ImageSelectionOverlay.tsx
Outdated
Show resolved
Hide resolved
src/routes/process-user-vocabulary/components/ImageSelectionOverlay.tsx
Outdated
Show resolved
Hide resolved
src/routes/process-user-vocabulary/UserVocabularyProcessScreen.tsx
Outdated
Show resolved
Hide resolved
Good catch. Fixed.
Good point. There is feedback (audio shutter sound), but closing is completely fine too. Changed it.
Naming is a little difficult always, as we try only to use A2 or at least really simple german. I changed to "hinzufügen" anyways.
Yes will be done in separate ticket (as mentioned as a todo in the comment).
Used for selection from gallery, will be done in separate ticket.
Not happend in my PR, already fixed this in LUN-420. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on Android.
Created and already rejected an issue for this (LUN-444). I thought this happened because of my phone resolution ^^. Also it seems, I had a really bad timing when reviewing this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on android and ios
ListItem.tsx
line 23, pls add flex: 1;
to fix listItem fullwidth issue
The rest steffen mentioned is fine for me since select image from gallery is a separate task. Maybe you could just comment out the gallery icon for now to not confuse testers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on android (real device) and ios (real device).
Android works fine.
On iOS the images were not shown taken by camera. (real device & emulator)
Looks like document-image
couldn't be saved correctly (empty array)
ListItem should be fixed as steffen mentioned (ListItem line 23) width: 100%;
(added it for my screenshot to show missing thumbnail)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on android, great job 🖼️
src/routes/process-user-vocabulary/UserVocabularyProcessScreen.tsx
Outdated
Show resolved
Hide resolved
src/routes/process-user-vocabulary/UserVocabularyProcessScreen.tsx
Outdated
Show resolved
Hide resolved
src/routes/process-user-vocabulary/UserVocabularyProcessScreen.tsx
Outdated
Show resolved
Hide resolved
src/routes/process-user-vocabulary/components/ImageSelectionOverlay.tsx
Outdated
Show resolved
Hide resolved
When using the article |
Will have a look at this.
Not part of this ticket. Add to LUN-401 if you think this should be done. |
Added with 100%, as you suggested in the other comment
Won't do, as this whole feature is wip. We also didn't do this for other icons, which do nothing yet. |
Done and close the ticket @f1sh1918 opened for it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could only test on ios simulator and that worked now. Can not build on real device atm
Tested on ios emulator and real devices again, works just fine. |
This pull request belongs to an issue on our bugtracker.
You can find it there by looking for an issue with the key which is mentioned in the title of this pull request.
It starts with the keyword LUN.
Should work for Android and iOS. Saves images in app specific storage for both.